#include "YasDownloadCoordinator.h"

namespace yas
{

YasDownloadCoordinator::YasDownloadCoordinator()
{

}

YasDownloadCoordinator::~YasDownloadCoordinator()
{

}

int YasDownloadCoordinator::addAgent(YasDownloadAgent *agent)
{
	this->agents.push_back(agent);
	return Yas::YAS_OK;
}

void YasDownloadCoordinator::startAllAgents()
{
	for(std::vector<YasDownloadAgent*>::iterator it=agents.begin(); it != agents.end(); it++)
	{
		(*it)->processConfiguration();
	}
}

}
